﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Orm.Entities
{
    /// <summary>
    /// 用户信息表
    ///</summary>
    [SugarTable("scm_user")]
    public class ScmUser
    {
        /// <summary>
        /// 主键 SNOW-ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true   )]
         public long Id { get; set; }

         /// <summary>
        /// 用户名 
        ///</summary>
        [SugarColumn(ColumnName = "user_name")]
        public string? UserName { get; set; }


        /// <summary>
        /// 密码 
        ///</summary>
        [SugarColumn(ColumnName = "password")]
        public string? Password { get; set; }

        /// <summary>
        /// 姓名 
        ///</summary>
        [SugarColumn(ColumnName="name"    )]
         public string? Name { get; set; }
        /// <summary>
        /// 性别：1 男  0 女 
        /// 默认值: 1
        ///</summary>
         [SugarColumn(ColumnName="sex"    )]
         public byte Sex { get; set; }
        /// <summary>
        /// 手机号 
        ///</summary>
         [SugarColumn(ColumnName="mobile"    )]
         public string? Mobile { get; set; }
        /// <summary>
        /// 联系地址 
        ///</summary>
         [SugarColumn(ColumnName="address"    )]
         public string? Address { get; set; }
        /// <summary>
        /// 微信OPEN_ID 
        ///</summary>
         [SugarColumn(ColumnName="open_id"    )]
         public string? OpenId { get; set; }
        /// <summary>
        /// 微信名称 
        ///</summary>
         [SugarColumn(ColumnName="wx_name"    )]
         public string? WxName { get; set; }
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="create_time"    )]
         public DateTime? CreateTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="update_time"    )]
         public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 逻辑删除 
        ///</summary>
         [SugarColumn(ColumnName="deleted"    )]
         public byte? Deleted { get; set; }
    }
}
